#include "mainwindow.h"

#include <QApplication>
#include <QDebug>
#include <Eigen/Core>
#include <iostream>
#include "IOType/PointCloud.h"
#include <string>
//#include "assimp/Importer.hpp"
//#include "assimp/scene.h"
//#include "assimp/postprocess.h"

void testInclude() {
//    QString qpath ="D:/selfad/qtapp/qt-with-open-gl/objects/rock/rock.obj";
//    Assimp::Importer importer;
//    const aiScene *scene=importer.ReadFile(qpath.toLatin1(),aiProcess_Triangulate | aiProcess_GenSmoothNormals | aiProcess_FlipUVs | aiProcess_CalcTangentSpace);

    qDebug() << sizeof(Eigen::Vector3d);
    Eigen::Vector3d X0(1,2,3);
    QString str = QString("%1 %2 %3").arg(X0.x()).arg(X0.y()).arg(X0.z());
    qDebug() << str;
    std::string path = "D:/selfad/qtapp/includeTest/3DAlgorithm/commonFunc/BasicTools/include/IOType/point.asc";
    std::vector<Eigen::Vector3d> cld;
    PointCloud::readPoint(path, cld);

    for(auto &p: cld)
    {
        qDebug()<<"x="<<p.x()<<" y="<<p.y()<<" z="<<p.z();
    }
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}
